from django.urls import include, path
from rest_framework.routers import DefaultRouter

from users import views

router = DefaultRouter()
router.register(r'users', views.UserViewSet)

urlpatterns = [
    path(r'', include(router.urls)),
    path('login/', views.UserLogin.as_view()),
    path('info/', views.UserInfo.as_view()),
    path('codes/', views.Codes.as_view()),
]
